package com.nuanshui.heatedloan.credit.model.record;

import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by Dargon on 2017/7/18.
 */

@Document(collection = "smsRecord")
public class SmsRecord {
    private String userId ;
    private String address ;//发送地址 号码
    private String content ;//内容
    private long sendDate ;//发送时间 毫秒为单位
    private int type ;//短信类型  1是接收 2是发送 3是草稿 4是发件箱 5是发送失败 6是待发送列表 0是所有短信

    public SmsRecord(String userId, String address, String content, long sendDate, int type) {
        this.userId = userId;
        this.address = address;
        this.content = content;
        this.sendDate = sendDate;
        this.type = type;
    }

    public SmsRecord() {
    }

    @Override
    public String toString() {
        return "SmsRecordVO{" +
                "userId='" + userId + '\'' +
                ", address='" + address + '\'' +
                ", content='" + content + '\'' +
                ", sendDate=" + sendDate +
                ", type=" + type +
                '}';
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getSendDate() {
        return sendDate;
    }

    public void setSendDate(long sendDate) {
        this.sendDate = sendDate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
